import 'package:flutter/material.dart';
import 'package:ui_demos/Algebra2.dart';
import 'package:ui_demos/Running.dart';
import 'package:ui_demos/google_classroom.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'ui_demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              onPressed: (){
                Navigator.push(context,MaterialPageRoute(builder: (context)=>Classroom()));
              },
              child: Text('google_classroom'),
              
            ),
            RaisedButton(
              onPressed: (){Navigator.push(context,MaterialPageRoute(builder: (context)=>Algebra2()));
              },
              child:Text('Algebra 2')
            ),
            RaisedButton(
              onPressed: (){Navigator.push(context,MaterialPageRoute(builder: (context)=>Running()));
              },
              child:Text('Running')
            )
          ],
        ),
      ),
    );
  }
}
